<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div></div>
    <div></div>
    <div></div>
    <script>
        //1.数组的合并
        // const kuai = ['aaa', 'vvv'];
        // const fen = ['ccc', 'bbbbb'];
        //ES5方法
        // const zui = kuai.concat(fen);
        // console.log(zui);
        //ES6方法
        // const zui = [...kuai, ...fen];
        // console.log(zui);
        //2.数组的克隆(如果有引用类型数据的话，他是一个浅拷贝)
        // const kuai = ['aaa', 'vvv'];
        // const kuai1 = [...kuai];
        // console.log(kuai1);
        // 引用数据类型不行
        // const c = {
        //     name: 'wzc'
        // }
        // const kuai = [c, a];
        // const kuai1 = [...kuai];
        // console.log(kuai1);
        //3.将伪数组转化为真正的数组
        // const divs = document.querySelectorAll('div');
        // const divarr = [...divs];
        // console.log(divarr);
    </script>
</body>

</html>